<div class="popform">
    <p class="validateTips"></p>
    <form id="document_form" action="notification/files" name="document_form" method="POST" enctype="multipart/form-data">
        <ul class="fl">
            <li class="top">
                <label>Title:<span>*</span></label>
                <div class="inputbg"><?php echo $this->form->name; ?></div>
                <div class="clr"></div>
            </li>
            <li>
                <label>Document:<span>*</span></label>
                <div class="inputbg"><?php echo $this->form->doc_path; ?></div>
                <div class="clr"></div>
            </li>
            <input type="hidden" name="cabinet" value="<?= $this->cabinetId; ?>">
            <input type="hidden" name="switch" value="<?= $this->switchId; ?>">
        </ul>
    </form>
</div>
<div class="clr"></div>
<div class="popform">
    <p><strong>Files:</strong></p>
    <div class="popup-filelist">
        <?php
        foreach ($this->files as $item) {
            $user = $this->getUserDetail($item['uploader_id']);
            ?>

            <ul>
                <li style="list-style: disc inside none"> 
                    <a href="<?= $this->baseURI(); ?>planning/document/download/<?= $item['file']; ?>"><?= $item['name']; ?></a>
                    by <?= $user['fname'] . ' ' . $user['lname']; ?> at <?= $item['date']; ?>
                </li>
            </ul>
<?php } ?>
    </div>

</div>